package cn.liuyang.tinyioc.context;

import cn.liuyang.tinyioc.beans.factory.AbstractBeanFactory;

/**
 * Created by liuyang on 2018/4/8.
 */
public abstract class AbstractApplicationContext implements ApplicationContext{

    protected AbstractBeanFactory beanFactory;



    public AbstractApplicationContext(AbstractBeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }

    public void refresh() throws Exception {

    }

    @Override
    public Object getBean(String name) throws Exception {
        return beanFactory.getBean(name);
    }

}
